<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserCarTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_car', function (Blueprint $table) {
            $table->increments('id')->comment("ID");
            $table->integer("user_id")->comment("用户ID");
            $table->string("plate_number",50)->comment("车牌号");
            $table->string("car_model",50)->comment("车型");
            $table->string("vin",50)->comment("车架号");
            $table->string("engine_number",50)->comment("发动机号");
            $table->string("mobile",50)->comment("手机号");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_car');
    }
}
